//
//  ResumeCollectionTableViewCell.m
//  CYWFrame
//
//  Created by 于顺燊 on 2018/10/22.
//  Copyright © 2018年 Macx. All rights reserved.
//

#import "ResumeCollectionTableViewCell.h"

@implementation ResumeCollectionTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
	[self.selectBtn setImage:IMAGE(@"shop_car_chose") forState:UIControlStateSelected];
}

- (void)setJobInfo:(JobInfoForRecruitIndex *)jobInfo
{
	if (_jobInfo != jobInfo) {
		_jobInfo = jobInfo;
		_name.text = jobInfo.name;
		_experience.text = jobInfo.work_life;
		_education.text = jobInfo.education;
		_salary.text = jobInfo.salary;
		_jobName.text = jobInfo.category_title;
		_introduction.text = jobInfo.desc;
		//_profileImage.image = [UIImage imageWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:jobInfo.head_img]]];
		[_profileImage sd_setImageWithURL:[NSURL URLWithString:jobInfo.head_img] placeholderImage:IMAGE(@"placeHolder")];
	}
}

- (void)setFrame:(CGRect)frame
{
	frame.origin.y += 10;
	frame.size.height -= 10;
	
	[super setFrame:frame];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
